package com.example.vertification.repository;


import com.example.vertification.entity.Question;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface QuestionRepository extends JpaRepository<Question, Long> {

        // 查找操作可以通过方法名约定来实现，无需编写SQL
        Question findByquestionId(Long id);

        List<Question> findAll();


}